package com.jv.spring.postprocessor;

import com.jv.spring.postprocessor.entity.ProcessorCity;
import com.jv.spring.postprocessor.scan.ProcessorUser;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ProcessorMain {
	public static void main(String[] args) {
		//AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(ProcessorConfig.class,ProcessorConfig1.class);
		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(ProcessorConfig.class);
		ProcessorCity city = ac.getBean(ProcessorCity.class);
		System.out.println(city.getCityName());
		ProcessorUser user = ac.getBean(ProcessorUser.class);
	}
}
